/*
 * =====================================================================================
 *
 *       Filename:  light.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  02/16/2011 10:10:46 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  dp (8023), dp8023@gmail.com
 *        Company:  
 *
 * =====================================================================================
 */

#include "light.h"
#include <iostream>

using namespace std;

void light::turnon()
{
	cout << "The turn on." << endl;
}

void light::turnoff()
{
	cout << "The turn off." << endl;
}

void lightcommand::execute()
{
	m_light->turnon();
}

void lightcommand::unexecute()
{
	m_light->turnoff();
}

void change::open()
{
	m_lc->execute();
}

void change::close()
{
	m_lc->unexecute();
}

